package org.kacangjawa.consumer.process;

import org.kacangjawa.producer.service.Producer;

public class ConsumerData {

	private Producer producer;
	
	public void init(){
		System.out.println("Printing 5 random numbers ");
		for(int i = 0; i < 5; i++){
			System.out.println((i + 1) +  " ===>> " + getProducer().getRandowNumber());			
		}
	}

	public Producer getProducer() {
		return producer;
	}

	public void setProducer(Producer producer) {
		this.producer = producer;
	}
	
	
}